//prin intermediul acestei clase lucram cu datele pers ale utiliz.
public class PersonalEntry implements Entry 
{
	private String nume_utiliz;
	private Address adresa_utiliz;
	private PhoneNumber nr_utiliz;
	private static PersonalEntry INSTANCE;
	private PersonalEntry(String n,Address a,PhoneNumber p)
	{
		this.nume_utiliz=n;
		this.adresa_utiliz=a;
		this.nr_utiliz=p;
	}
	public static PersonalEntry getInstance(String n,Address a,PhoneNumber p)
	{	
		if(INSTANCE==null)
		{
			INSTANCE=new PersonalEntry(n,a,p);
		}
		return INSTANCE; // => va exista o sing intrare cu datele pers in agenda 
	}
	public Entry copy()
	//am folosit sab Prototype 
	{
		return INSTANCE;
	}
	public String getName()
	{
		return this.nume_utiliz;
	}
	public String toString()
	{
		return "Personal Entry: "+this.nume_utiliz+" "+this.adresa_utiliz+" "+this.nr_utiliz;
	}

}
